package timbap.visualizer.api.exceptions;

import timbap.visualizer.api.plugin.Plugin;
import timbap.visualizer.api.plugin.container.PluginContainer;

public class NotInitializedPluginAddedException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	public NotInitializedPluginAddedException(PluginContainer pContainer, 
											  Plugin pPlugin) {
		
		super("Adding plugin " + pPlugin.getClass().getSimpleName() 
				+ " to container " + pContainer.getClass().getSimpleName() + " failed. " 
				+ "Plugins must be initialized before being added to a container.");
	}
	
}
